package com.hjl.spring6.bean.iocXml.auto.controller;

import com.hjl.spring6.bean.iocXml.auto.service.UserService;
import com.hjl.spring6.bean.iocXml.auto.service.serviceImpl.UserServiceImpl;

/**
 * @author ServivE
 * @version 0.1
 * @className UserController
 * @description
 * @date 2024/8/6 17:20
 * @since jdk11
 */
public class UserController {
    private UserService userService;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void addUser() {
        System.out.println("controller方法执行了....");
        userService.addUserService();
        /*UserService userService = new UserServiceImpl();
        userService.addUserService();*/
    }



}
